package io.renren.dao;

import io.renren.entity.AppUserEntity;
import io.renren.entity.PointsResult;
import io.renren.po.UserPoints;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by ThinkPad on 2018/11/29.
 */
public interface PersonalCenterDao {

    PointsResult queryUserPoints(@Param("userid") String userid);

    List<Map> queryGoods();

    List<Map> queryPoints(@Param("userid") String userid);

    Integer saveUserPoints(UserPoints userPoints);

    Integer saveUserOperationLog(UserPoints userPoints);

    UserPoints queryPointsLog(Map paramMap);

    Integer updateUserPoints(Map paramMap);

    Integer queryPointsSum(Map paramMap);

    Map queryAppUserInfo(@Param("userid") String userid);

    Integer insertAppUser(AppUserEntity appUserEntity);

    Integer updateAppUser(AppUserEntity appUserEntity);
}
